package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Configuration  代表当前是配置入口类
 * @ComponentScan("com.itheima") 扫描指定包下注解  把 组件放到spring管理
 * 这是一个配置类 用来取代xml的
 */
@Configuration
@Import({JdbcConfig.class,MyBatisConfig.class})
@ComponentScan("com.itheima")
@PropertySource("jdbc.properties")
@EnableTransactionManagement
public class SpringConfig {
}
